package factoryPattern;

import factoryPattern.SimpleFactory.PizzaType;

public class PizzaStore1 extends PizzaStore {

	@Override
	public Pizza createPizza(PizzaType type) {
		switch (type) {
		case PIZZA_TYPE1:
			return new SpecialPizza1();
		case PIZZA_TYPE2:
			return new SpecialPizza2();
		default:
			return null;
		}
	}

}
